package com.woniuxy.creditsystem.common.mapper;

import com.woniuxy.creditsystem.common.bean.DataDictionaryInfo;
import com.woniuxy.creditsystem.common.bean.PageRequest;
import com.woniuxy.creditsystem.common.bean.ProcessModelInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface ProcessModelMapper {

    /**
     * 分页查询
     * @Author liaojian
     * */
    List<ProcessModelInfo> findAllByParams(
            @Param("p") PageRequest request, @Param("pro") ProcessModelInfo pro);

    /**
     * 新增数据
     * @Author liaojian
     * */
    int save(@Param("pro") ProcessModelInfo pro);

    /**
     * 修改数据
     * @Author liaojian
     * */
    int update(@Param("pro") ProcessModelInfo pro);

    /**
     * 删除数据
     * */
    int delete(@Param("id") long id);
}
